Produced by Araxis Merge on 2022-11-18 03:12:07 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view | rich_snippet.phtml | 2017-03-16 00:48:12 +0000 |
| 2 | Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view | rich_snippet.phtml | 2017-03-16 00:48:12 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 70 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | 1 | <?php | |||
| 2 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | 2 | $porto_helper = $this->helper('Smartwave\Porto\Helper\Data'); | |||
| 3 | $rich_snippet = $porto_helper->getConfig('porto_settings/richsnippets'); | 3 | $rich_snippet = $porto_helper->getConfig('porto_settings/richsnippets'); | |||
| 4 | if(isset($rich_snippet['enable']) && $rich_snippet['enable']) { | 4 | if(isset($rich_snippet['enable']) && $rich_snippet['enable']) { | |||
| 5 | $_product = $this->getProduct(); | 5 | $_product = $this->getProduct(); | |||
| 6 | $summaryModel = $block->getReviewSummary(); | 6 | $summaryModel = $block->getReviewSummary(); | |||
| 7 | $reviewCount = $summaryModel->getReviewsCount(); | 7 | $reviewCount = $summaryModel->getReviewsCount(); | |||
| 8 | if (!$reviewCount) { | 8 | if (!$reviewCount) { | |||
| 9 | $reviewCount = 0; | 9 | $reviewCount = 0; | |||
| 10 | } | 10 | } | |||
| 11 | $ratingSummary = ($summaryModel->getRatingSummary()) ? $summaryModel->getRatingSummary() : 20; | 11 | $ratingSummary = ($summaryModel->getRatingSummary()) ? $summaryModel->getRatingSummary() : 20; | |||
| 12 | ?> | 12 | ?> | |||
| 13 | <div itemscope itemtype="http://schema.org/Product"> | 13 | <div itemscope itemtype="http://schema.org/Product"> | |||
| 14 | <meta itemprop="name" content="<?php /* @escapeNotVerified */ echo $block->escapeQuote($block->stripTags($_product->getName())); ?>" /> | 14 | <meta itemprop="name" content="<?php /* @escapeNotVerified */ echo $block->escapeQuote($block->stripTags($_product->getName())); ?>" /> | |||
| 15 | <meta itemprop="image" content="<?php /* @escapeNotVerified */ echo $block->stripTags($block->getImage($_product, 'product_base_image')->getImageUrl()); ?>" /> | 15 | <meta itemprop="image" content="<?php /* @escapeNotVerified */ echo $block->stripTags($block->getImage($_product, 'product_base_image')->getImageUrl()); ?>" /> | |||
| 16 | <meta itemprop="description" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getDescription()); ?>" /> | 16 | <meta itemprop="description" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getDescription()); ?>" /> | |||
| 17 | <meta itemprop="url" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getProductUrl()); ?>" /> | 17 | <meta itemprop="url" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getProductUrl()); ?>" /> | |||
| 18 | <meta itemprop="sku" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getSku()); ?>" /> | 18 | <meta itemprop="sku" content="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getSku()); ?>" /> | |||
| 19 | <div itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating"> | 19 | <div itemtype="http://schema.org/AggregateRating" itemscope itemprop="aggregateRating"> | |||
| 20 | <meta itemprop="worstRating" content="1" /> | 20 | <meta itemprop="worstRating" content="1" /> | |||
| 21 | <meta itemprop="bestRating" content="5" /> | 21 | <meta itemprop="bestRating" content="5" /> | |||
| 22 | <meta itemprop="ratingValue" content="<?php echo $ratingSummary / 20 ; ?>" /> | 22 | <meta itemprop="ratingValue" content="<?php echo $ratingSummary / 20 ; ?>" /> | |||
| 23 | <meta itemprop="reviewCount" content="<?php echo $reviewCount; ?>" /> | 23 | <meta itemprop="reviewCount" content="<?php echo $reviewCount; ?>" /> | |||
| 24 | </div> | 24 | </div> | |||
| 25 | <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> | 25 | <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> | |||
| 26 | <meta itemprop="priceCurrency" content="<?php echo $block->getCurrencyCode() ?>" /> | 26 | <meta itemprop="priceCurrency" content="<?php echo $block->getCurrencyCode() ?>" /> | |||
| 27 | <meta itemprop="price" content="<?php echo $_product->getFinalPrice(); ?>" /> | 27 | <meta itemprop="price" content="<?php echo $_product->getFinalPrice(); ?>" /> | |||
| 28 | <?php if ($_product->isAvailable()): ?> | 28 | <?php if ($_product->isAvailable()): ?> | |||
| 29 | <link itemprop="availability" href="http://schema.org/InStock" /> | 29 | <link itemprop="availability" href="http://schema.org/InStock" /> | |||
| 30 | <?php else : ?> | 30 | <?php else : ?> | |||
| 31 | <link itemprop="availability" href="http://schema.org/OutOfStock" /> | 31 | <link itemprop="availability" href="http://schema.org/OutOfStock" /> | |||
| 32 | <?php endif ?> | 32 | <?php endif ?> | |||
| 33 | </div> | 33 | </div> | |||
| 34 | </div> | 34 | </div> | |||
| 35 | <?php }?> | 35 | <?php }?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.